package com.micheal.pattern.factory.func;

/**
 * Created by micheal on 2018/3/21/0021.
 */
public class FuncFactoryTest {

    public static void main(String[] args) {

        FuncFactory funcFactory = new AppleFactory();
        System.out.println(funcFactory.getPhone().getName());

        funcFactory = new HuaweiFactory();
        System.out.println(funcFactory.getPhone().getName());

        funcFactory = new SanXingFactory();
        System.out.println(funcFactory.getPhone().getName());

    }

}
